package com.rtx.wms.std.so.bean;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rtx.wms.std.common.bean.Storer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 出库订单表
 * </p>
 *
 * @author wq
 * @since 2023-04-26
 */
@Data
@TableName("Orders")
@ApiModel(value = "Orders对象", description = "出库订单表")
public class Orders {

    @TableId(type = IdType.AUTO)
    private Integer serialkey;

    private String whseid;

      private String orderkey;

    private String storerkey;

    private String externorderkey;

    private LocalDateTime orderdate;

    private LocalDateTime deliverydate;

    private String priority;

    private String consigneekey;

    private String cContact1;

    private String cContact2;

    private String cCompany;

    private String cAddress1;

    private String cAddress2;

    private String cAddress3;

    private String cAddress4;

    private String cCity;

    private String cState;

    private String cZip;

    private String cCountry;

    private String cIsocntrycode;

    private String cPhone1;

    private String cPhone2;

    private String cFax1;

    private String cFax2;

    private String cVat;

    private String buyerpo;

    private String billtokey;

    private String bContact1;

    private String bContact2;

    private String bCompany;

    private String bAddress1;

    private String bAddress2;

    private String bAddress3;

    private String bAddress4;

    private String bCity;

    private String bState;

    private String bZip;

    private String bCountry;

    private String bIsocntrycode;

    private String bPhone1;

    private String bPhone2;

    private String bFax1;

    private String bFax2;

    private String bVat;

    private String incoterm;

    @ApiModelProperty("付款条款")
    private String pmtterm;

    private String door;

    private String sortationlocation;

    private String batchflag;

    private String bulkcartongroup;

    private String route;

    private Long stop;

    private BigDecimal openqty;

    @ApiModelProperty("17,分配量;")
    private String status;

    private String dischargeplace;

    private String deliveryplace;

    private String intermodalvehicle;

    private String countryoforigin;

    private String countrydestination;

    private String updatesource;

    private String type;

    private String ordergroup;

    private LocalDateTime effectivedate;

    private String stage;

    private String dcId;

    private String splitOrders;

    private String apptStatus;

    private String cheppalletindicator;

    private String containertype;

    private BigDecimal containerqty;

    private BigDecimal billedcontainerqty;

    @ApiModelProperty("运输方式")
    private String transportationmode;

    private String transportationservice;

    private String externalorderkey2;

    private String cEmail1;

    private String cEmail2;

    private String susr1;

    private String susr2;

    private String susr3;

    private String susr4;

    private String susr5;

    private String notes2;

    private Double itemNumber;

    private String forteFlag;

    private String loadid;

    private String shiptogether;

    private LocalDateTime deliverydate2;

    private LocalDateTime requestedshipdate;

    private LocalDateTime actualshipdate;

    private LocalDateTime deliverDate;

    private BigDecimal ordervalue;

    private String ohtype;

    private String externalloadid;

    private Double destinationnestid;

    private String referencenum;

    private String intransitkey;

    private String receiptkey;

    private String caselabeltype;

    private String labelname;

    private String stdsscclabelname;

    private String stdgtinlabelname;

    private String rfidsscclabelname;

    private String rfidgtinlabelname;

    private String rfidflag;

    private String carriercode;

    private String carriername;

    private String carrieraddress1;

    private String carrieraddress2;

    private String carriercity;

    private String carrierstate;

    private String carrierzip;

    private String carriercountry;

    private String carrierphone;

    private String drivername;

    private String trailernumber;

    private String trailerowner;

    private String trailertype;

    private LocalDateTime depdatetime;

    private String orderbreak;

    private String allocatedonerp;

    private String tradingpartner;

    private String pronumber;

    private String enablepacking;

    private String packinglocation;

    private String ordersid;

    private String suspendedindicator;

    private String picklistreportid;

    private String packinglistreportid;

    private String sourceversion;

    private String referencetype;

    private String referencedocument;

    private String referencelocation;

    private String referenceversion;

    @ApiModelProperty("运费")
    private BigDecimal freightchargeamount;

    private BigDecimal freightcostamount;

    private String appointmentkey;

    private Double allowoverpick;

    private BigDecimal totalqty;

    private BigDecimal totalgrosswgt;

    private BigDecimal totalcube;

    private Long totalorderlines;

    private String referenceaccountingentity;

    private String pokey;

    private String apportion;

    private String containerid;

    private LocalDateTime promisedshipdate;

    private LocalDateTime plannedshipdate;

    private LocalDateTime scheduledshipdate;

    private LocalDateTime promiseddelvdate;

    private LocalDateTime planneddelvdate;

    private LocalDateTime scheduleddelvdate;

    private LocalDateTime actualdelvdate;

    private LocalDateTime earliestshipdate;

    private LocalDateTime earliestdeliverydate;

    private String carrierroutedocument;

    private String carrierrouteaccountingentity;

    private String carrierroutelocation;

    private String carrierrouteversion;

    private LocalDateTime actualarrivaldate;

    private String cAddress5;

    private String cAddress6;

    private String bAddress5;

    private String bAddress6;

    private String returntoparty;

    private String trailerkey;

    private String carrierroutestatus;

    private String splitshipmentindicator;

    private String splitshipmentoriginalorderkey;

    private String splitshipmentfinalshipment;

    private String bodapplicationarea;

    private BigDecimal freightcostbaseamount;

    private BigDecimal freightchargebaseamount;

    private String packingvaltemplate;

    private String packnotes;

    private BigDecimal totalroutes;

    private String autodoorassigned;

    private String autostageassigned;

    private String autopackassigned;

    private String autodockassignedhow;

    private String autodockassignedset;

    private Double autodockassignedstep;

    private LocalDateTime autodockassigntime;

    private Double totalpalletestimate;

    private String requireorderclose;

    private LocalDateTime adddate;

    private String addwho;

    private LocalDateTime editdate;

    private String editwho;

    private String notes;

    private String spsapistrategykey;

    @ApiModelProperty("发票号")
    private String bolnumber;

    @ApiModelProperty("发票是否打印")
    private String bolprinted;

    private String expresskey;

    private String default14;

    @ApiModelProperty("1全程陆运")
    private String default19;

    private String cancelmark;

    private String rtxcancel;

    private String rtxcancelmark;

    private String rtxfromstorerkey;

    @ApiModelProperty("是否预配")
    private String rtxpredistribution;

    @ApiModelProperty("上游订单优先级别")
    private String rtxpriority;

    @ApiModelProperty("允许部分出库")
    private String rtxshippart;

    @ApiModelProperty("订单金额")
    private BigDecimal rtxtotalamt;

    @ApiModelProperty("折扣金额")
    private String rtxdctamt;

    @ApiModelProperty("应付金额")
    private String rtxamtpayable;

    @ApiModelProperty("已付金额")
    private String rtxamtpaid;

    @ApiModelProperty("发票是否打印")
    private String rtxinvprint;

    @ApiModelProperty("发票类型")
    private String rtxinvtype;

    @ApiModelProperty("发票抬头")
    private String rtxinvtitle;

    @ApiModelProperty("经营性质")
    private String rtxbiznat;

    @ApiModelProperty("电商平台名")
    private String rtxsalesp;

    @ApiModelProperty("店铺名")
    private String rtxshopname;

    @ApiModelProperty("平台交易单号")
    private String rtxtxno;

    @ApiModelProperty("昵称")
    private String rtxusername;

    @ApiModelProperty("买家留言")
    private String rtxbuyermsg;

    private String rtxexpresskey;

    @ApiModelProperty("货运单号")
    private String rtxwaybillno;

    @ApiModelProperty("业务类型")
    private String rtxexternaltype;

    @ApiModelProperty("客户代码  根据交货地代码查询客户代码")
    private String rtxcustomer;

    @ApiModelProperty("交运方式 根据客户代码查询客户主档")
    private String rtxdelmode;

    @ApiModelProperty("保价方式")
    private String rtxinsway;

    @ApiModelProperty("固定保价金额")
    private String rtxinsamt;

    @ApiModelProperty("保价金额比率")
    private String rtxinsamtrate;

    @ApiModelProperty("二段码")
    private String rtxshortaddr;

    @ApiModelProperty("末端网点代码")
    private String rtxcbcode;

    @ApiModelProperty("集包地中心代码")
    private String rtxpccode;

    @ApiModelProperty("集包地中心名称")
    private String rtxpcname;

    @ApiModelProperty("上位单据类型")
    private String rtxbsart;

    @ApiModelProperty("支付条款")
    private String rtxpmtterm;

    @ApiModelProperty("原快递单号")
    private String rtxexpresskeyold;

    @ApiModelProperty("订单集货位")
    private String rtxsjqloc;

    @ApiModelProperty("取消原因")
    private String rtxcancelreason;

    @ApiModelProperty("取消时间")
    private LocalDate rtxcanceldate;

    @ApiModelProperty("取消人")
    private String rtxcancelwho;

    private String rtxvipreceiptkey;

    @ApiModelProperty("支付时间")
    private LocalDate rtxpaydate;

    @ApiModelProperty("唯品会入库日期")
    private LocalDateTime rtxvipdatereceived;

    @ApiModelProperty("回传标识P待处理-PS处理中-S成功-F失败")
    private String rtxedifinishflag;

    private String tmfreightchargecurrency;

    private String allocatestrategykey;

    @ApiModelProperty("Freight Cost Currency")
    private String tmfreightcostcurrency;

    @ApiModelProperty("SKU在货品表累计数量")
    private Integer rtxnotpicknumber;

    @ApiModelProperty("主提单号")
    private String masterbolnumber;

    private BigDecimal rtxfreight;

    private BigDecimal rtxfreightdiscount;

    private BigDecimal rtxtimespent;

    private String rtxeditflagsapnotes;

    private String rtxeditflagsap;

    private String rtxdelivery;

    private String rtxfreightkey;

    @ApiModelProperty("接口消息描述")
    private String msg;

    @ApiModelProperty("月结卡号")
    private String rtxmonthlyaccount;

    @ApiModelProperty("格口号")
    private Integer rtxseqno;

    @ApiModelProperty("ORDER-多箱复核按单  ;TASKGROUP-多箱复核按任务组  ;PICKID-多箱复核按拣货箱")
    private String rtxchecktype;

    @ApiModelProperty("付款时间")
    private LocalDateTime rtxpmtdate;

    private Integer rtxobidseq;

    @ApiModelProperty("打印京东编码")
    private String rtxprintcode;

    @ApiModelProperty("单据系统来源")
    private String source;

    @ApiModelProperty("奇门类型")
    private String rtxqmtype;

    @ApiModelProperty("付款目的地")
    private String rtxbDest;

    @ApiModelProperty("付款人区县")
    private String rtxbCounty;

    @ApiModelProperty("收货目的地")
    private String rtxcDest;

    @ApiModelProperty("收货人区县")
    private String rtxcCounty;

    @ApiModelProperty("法人")
    private String rtxplant;

    @ApiModelProperty("接口执行完成时间")
    private LocalDateTime rtxediexecdate;

    @ApiModelProperty("接口回传标识")
    private String orderfinishflag;

    private String rtxinterfacekey;

    @ApiModelProperty("店铺ID")
    private String rtxshopid;

    private String printdate;

    private String rtxapisourcetype;

    private String rtxsourceplatformname;

    private String rtxresetexpress;

    private String rtxtransportproducts;

    private String default01;

    private String default02;

    private String default03;

    private LocalDateTime default04;

    private LocalDateTime default05;

    private String default06;

    private String default07;

    private String default08;

    private String default09;

    private String default10;

    private String sellermessage;

    private String cpickcode;

    private String ctagcode;

    private String cplacetogather;

    private String rtxoriginroute;

    @ApiModelProperty("部门id")
    private Long deptId;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("产线id")
    private Long deptLineId;

    @ApiModelProperty("产线名称")
    private String deptLineName;

    private String rtxlane;

    @ApiModelProperty("店仓")
    private String rtxpofromhourse;

    private String ediflag;

    private String edimsg;

    private int rtxqueue;

    private String rtxqmmethod;
    @ApiModelProperty("jit 和jitx字段")
    private String trademask;

    private String qmcustomerid;
    private String oaid;
    private String tid;
    private String tmsediflag;
    private String tmsedimsg;
    private String expressflag;

    @TableField(exist = false)
    private List<Orderdetail> details;
    @TableField(exist = false)
    private List<Pickdetail> pickdetail;
    @TableField(exist = false)
    private Storer storer;
    @TableField(exist = false)
    private Map<String,String> sendInfo;
    @TableField(exist = false)
    private Storer sendStorer;
    @TableField(exist = false)
    private Storer receiverStorer;

    private String rtxcarriercode;
    
    private String returnfailedreason;//上传信息
    
    @TableField(exist = false)
    private String rtxpurgroup;
    @TableField(exist = false)
    private String rtxsalesgroup;
    
    //格瑞普字段
    private String rtxexternorderkey2;
    private String rtxerptype;
    private String toexamine;
    private String rtxlldp;
    private String rtxwerks;
    private String rtxuseto;
    private String rtxworkshop;
    private String rtxiscontainer;
    private String rtxeditflag_erp_ps;
    
    private String rtxdemandtype;
    private String rtxmakewho;
    private String rtxdemanddate;
    private String rtxxianbie;
    private String rtxneima;
}
